package com.tomas.demo.controller.freemarker;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Tomas
 * @date 16/5/10 下午5:18
 * @what
 */
@Slf4j
@Controller
@RequestMapping(value = "/ft")
public class FreemarkerDemoController {

    @RequestMapping(method= RequestMethod.GET)
    public String email(Model model){
        model.addAttribute("name", "中文测试");
        model.addAttribute("age", 12);
        return "/ftl/email.vm";
    }


}
